#include "crossbit/SignalHandler.h"

using namespace crossbit;


ProcessorState*	SignalHandler::sig_state = NULL;
MemoryImage*	SignalHandler::sig_img = NULL;
MemoryManager*	SignalHandler::sig_mm = NULL;
TraceManager*	SignalHandler::sig_tm = NULL;
Interpreter*	SignalHandler::sig_itp = NULL;
VBlockBuilder* 	SignalHandler::sig_vbb = NULL;
TCache*			SignalHandler::sig_tc = NULL;
Translator*		SignalHandler::sig_tr = NULL;
SyscallHandler*	SignalHandler::sig_sh = NULL;
SignalRegister*	SignalHandler::sig_rg = NULL;


SignalHandler::SignalHandler(ProcessorState		*processor_state,
							 MemoryImage		*memory_image,
							 MemoryManager		*memory_manager,
							 TraceManager		*trace_manager,
							 Interpreter		*interpreter,
							 VBlockBuilder		*builder, 
							 TCache				*tcache,
							 Translator			*translator,
							 SyscallHandler		*syscall_handler,
							 SignalRegister		*signal_register)
{
	sig_state = processor_state;
	sig_img = memory_image;
	sig_mm = memory_manager;
	sig_tm = trace_manager;
	sig_itp = interpreter;
	sig_vbb = builder;
	sig_tc = tcache;
	sig_tr = translator;
	sig_sh = syscall_handler;
	sig_rg = signal_register;
}
